package behavioralPattern.observer.example02;

/**
 * 模拟买房摇号服务
 */
public class DrawHouseService {

    // 摇号抽签
    public String lots(String uid){
        if (uid.hashCode() % 2 == 0){
            return "恭喜id为：[" + uid + "]的用户中签";
        } else {
            return "抱歉，id为：[" + uid + "]的用户没中签";
        }
    }

}
